package a2022.a20220927;

import java.util.Arrays;

/**
 * @author lenovo
 * @date 2022/9/27
 */
public class a {
    public boolean CheckPermutation(String s1, String s2) {
        char[] chars1 = s1.toCharArray();
        char[] chars2 = s2.toCharArray();
        Arrays.sort(chars1);
        Arrays.sort(chars2);
        return Arrays.equals(chars1, chars2);
    }
}
